﻿Ext.define('app.prm.detail.PrmEvaluation',
{
    extend: 'Ext.window.Window',
    border: true,
    title: '项目评价',
    modal: true,
    shadow: true,
    maximized: true,
    autoScroll: true,
    //layout: 'fit',
    bodyStyle: 'padding:20px',
    initComponent: function () {
        var me = this;
        this.items = [
            new Ext.panel.Panel(
            {
                border: false,
                items: [
                    { xtype: 'displayfield', value: "PM(debug)" },
                    new Ext.form.RadioGroup(
                    {
                        items: [
                            { boxLabel: '1分', name: 'pg', inputValue: '10', checked: true },
                            { boxLabel: '2分', name: 'pg', inputValue: '20' },
                            { boxLabel: '3分', name: 'pg', inputValue: '30' },
                            { boxLabel: '4分', name: 'pg', inputValue: '40' },
                            { boxLabel: '5分', name: 'pg', inputValue: '50' }
                        ]
                    }),
                    {
                        xtype: 'textarea',
                        height: 150,
                        width: 700,
                        emptyText: '请输入评价内容'
                    }
                ]
            }),
            new Ext.panel.Panel(
            {
                border: false,
                items: [
                    { xtype: 'displayfield', value: "项目评价" },
                    new Ext.form.RadioGroup(
                    {
                        items: [
                            { boxLabel: '1分', name: 'pg', inputValue: '10', checked: true },
                            { boxLabel: '2分', name: 'pg', inputValue: '20' },
                            { boxLabel: '3分', name: 'pg', inputValue: '30' },
                            { boxLabel: '4分', name: 'pg', inputValue: '40' },
                            { boxLabel: '5分', name: 'pg', inputValue: '50' }
                        ]
                    }),
                    {
                        xtype: 'textarea',
                        height: 150,
                        width: 700,
                        emptyText: '请输入评价内容'
                    }
                ]
            })
        ];
        this.buttons = [
            {
                text: '保存',
                handler: function () { }, scope: this
            },
            {
                text: '取消',
                handler: function () { this.close(); }, scope: this
            }
        ];
        me.callParent();
    }
});